
package com.qingcloud.df.executor.pojo.process.config;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

import java.io.Serializable;


@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "cpu_request",
    "cpu_limit",
    "memory_request",
    "memory_limit"
})
public class ResourceRequirements implements Serializable
{
    private final static long serialVersionUID = 1234426294489412380L;
    @JsonProperty("cpu_request")
    private String cpuRequest;
    @JsonProperty("cpu_limit")
    private String cpuLimit;
    @JsonProperty("memory_request")
    private String memoryRequest;
    @JsonProperty("memory_limit")
    private String memoryLimit;


    @JsonProperty("cpu_request")
    public String getCpuRequest() {
        return cpuRequest;
    }

    @JsonProperty("cpu_request")
    public void setCpuRequest(String cpuRequest) {
        this.cpuRequest = cpuRequest;
    }

    public ResourceRequirements withCpuRequest(String cpuRequest) {
        this.cpuRequest = cpuRequest;
        return this;
    }

    @JsonProperty("cpu_limit")
    public String getCpuLimit() {
        return cpuLimit;
    }

    @JsonProperty("cpu_limit")
    public void setCpuLimit(String cpuLimit) {
        this.cpuLimit = cpuLimit;
    }

    public ResourceRequirements withCpuLimit(String cpuLimit) {
        this.cpuLimit = cpuLimit;
        return this;
    }

    @JsonProperty("memory_request")
    public String getMemoryRequest() {
        return memoryRequest;
    }

    @JsonProperty("memory_request")
    public void setMemoryRequest(String memoryRequest) {
        this.memoryRequest = memoryRequest;
    }

    public ResourceRequirements withMemoryRequest(String memoryRequest) {
        this.memoryRequest = memoryRequest;
        return this;
    }

    @JsonProperty("memory_limit")
    public String getMemoryLimit() {
        return memoryLimit;
    }

    @JsonProperty("memory_limit")
    public void setMemoryLimit(String memoryLimit) {
        this.memoryLimit = memoryLimit;
    }

    public ResourceRequirements withMemoryLimit(String memoryLimit) {
        this.memoryLimit = memoryLimit;
        return this;
    }
}
